package oss.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import oss.mapper.WxbottleurlMapper;
import oss.policy.Wxbottleurl;
import oss.service.Wxbotteurlservice;

import java.util.List;

@Service
public class Wxbottleurlserviceimpl implements Wxbotteurlservice {
    @Autowired
    private WxbottleurlMapper wxbottleurlMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return wxbottleurlMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(oss.policy.Wxbottleurl record) {
        return wxbottleurlMapper.insert(record);
    }

    @Override
    public int insertSelective(oss.policy.Wxbottleurl record) {
        return wxbottleurlMapper.insertSelective(record);
    }

    @Override
    public oss.policy.Wxbottleurl selectByPrimaryKey(String openid) {
        return wxbottleurlMapper.selectByPrimaryKey(openid);
    }

    @Override
    public int updateByPrimaryKeySelective(oss.policy.Wxbottleurl record) {
        return wxbottleurlMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(oss.policy.Wxbottleurl record) {
        return wxbottleurlMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wxbottleurl> selectindex(String usersex, String openid) {
        return wxbottleurlMapper.selectindex(usersex,openid);
    }
}
